//
//  GoodsDetailInfo.m
//  EJLX
//
//  Created by adc on 15/11/19.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "GoodsDetailInfo.h"

@implementation GoodsDetailInfo


+(GoodsDetailInfo *)praseTheGoodsDetailInfo:(NSDictionary *)data
{
    GoodsDetailInfo *goods = [[GoodsDetailInfo alloc] init];
    goods.infoProductID = data[@"productId"];
    goods.infoShopID = data[@"shopId"];
    goods.detailImgUrlArray = [NSMutableArray array];
    goods.detailImgUrlArray = [data objectForKey:@"detailImages"];
    
    goods.imgUrl = [data objectForKey:@"imgUrl"];
    goods.title = [data objectForKey:@"title"];
    goods.newPrice = [[data objectForKey:@"discountPrice"]intValue];
    
    goods.oldPrice = [[data objectForKey:@"price"] intValue];
    goods.num= [[data objectForKey:@"collectionNum"]intValue];
    goods.commison = [[data objectForKey:@"commision"] intValue];
    goods.kuncun = [data[@"stockNum"] intValue];
    goods.deliveryType = [data objectForKey:@"deliveryFee"];
    
    
    
    return goods;
}

@end
